pkgname=blogbench
pkgver=1.1
pkgrel=1
arch=('i386' 'x86_64')
url="https://blockbench.net/"
license=('GPL')
source=("https://download.pureftpd.org/pub/blogbench/blogbench-${pkgver}.tar.gz")
sha256sums=('SKIP')

build()
{
	cd "${srcdir}/${pkgname}-${pkgver}"
        [ ! -f "/usr/share/misc/config.guess" ]&&
        curl -s -o /usr/share/misc/config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
        [ ! -f "/usr/share/misc/config.sub" ]&&
        curl -s -o /usr/share/misc/config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
	cp /usr/share/misc/config.{guess,sub} .
	./configure
	make
}

package() {
	mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}"
	cp -af "$srcdir/${pkgname}-${pkgver}/src/blogbench" "${pkgdir}/lkp/benchmarks/${pkgname}"
}
